Version

AddXAttributeToClassName(HtmlTextWriter,String,String[]) Method

Write class to writer with extra attribute. That method can be used only for the html element of main control which has normal id.
Syntax
'Declaration
 
Public Overloads Sub AddXAttributeToClassName( _
   ByVal writer As HtmlTextWriter, _
   ByVal className As String, _
   ByVal ParamArray attributes() As String _
) 
public void AddXAttributeToClassName( 
   HtmlTextWriter writer,
   string className,
   params string[] attributes
)

Parameters

writer
Writer used to output class (and id) attribute for html element
className
Original value for class attribute used by control
attributes
Attribute/value pairs to add to the marker
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also